package cn.lysj.framework.api.controller;

import cn.lysj.framework.api.base.ApiContent;
import cn.lysj.framework.common.utils.web.ParamUtil;
import cn.lysj.framework.common.utils.web.Resp;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author ：drj.
 * @ Date  ：Created in 9:14 2018/11/13
 * @ Description:
 **/
@RestController
@RequestMapping("/api/v1/user")
@Api(value = "ApiOrderController", tags = "商店信息")
public class ApiStoreController extends ApiContent {
    @GetMapping("/get_store_msg")
    public Resp getStoreMsg(String storeId){
        if(ParamUtil.isBlank(storeId)){
            return new Resp(Resp.PARAM_ERROR,"未取得门店信息!");
        }
        return new Resp(storeRepository.findUserId(storeId));
    }
}
